<?php

class ChallengeCategory
{
	private $Id;
	private $Name;
	private $Description;
	
	public function getId()
	{
		if(!isset($this->Id))
			$this->setId(0);
		return $this->Id;
	}
	public function setId($id)
	{
		$this->Id = $id;
	}
	public function IsPersited()
	{
		return $this->getId() != 0;
	}
	
	public function getName()
	{
		if(!isset($this->Name))
			$this->setName('');
		return $this->Name;
	}
	public function setName($name)
	{
		$this->Name = $name;
	}
	
	public function getDescription()
	{
		if(!isset($this->Description))
			$this->setDescription('');
		return $this->Description;
	}
	public function setDescription($description)
	{
		$this->Description = $description;
	}
}
?>